import hyRequest from '@/service'

export function getBanners() {
  return hyRequest.get({
    url: '/banner'
  })
}
export function getRecommend() {
  return hyRequest.get({
    url: '/personalized?limit=8'
  })
}
export function getAblumNewest() {
  return hyRequest.get({
    url: '/album/newest'
  })
}
// 榜单：飙升榜 19723756 新歌榜 3779629 原创榜 2884035

export function getRankingData(id: number) {
  return hyRequest.get({
    url: '/playlist/detail',
    params: {
      id
    }
  })
}

// 右侧 入驻歌手 热门主播
export function getArtistList(limit = 30) {
  return hyRequest.get({
    url: '/artist/list',
    params: {
      limit
    }
  })
}
